package com.dz.server.service.impl;

import com.dz.server.pojo.ProductAtomic;
import com.dz.server.mapper.ProductAtomicMapper;
import com.dz.server.service.ProductAtomicService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dz
 * @since 2022-03-25
 */
@Service
public class ProductAtomicServiceImpl extends ServiceImpl<ProductAtomicMapper, ProductAtomic> implements ProductAtomicService {
    @Autowired
    private ProductAtomicMapper productAtomicMapper;
    @Override
    public int deleteAtomicByProductId(Integer pid) {
        return productAtomicMapper.deleteAtomicByProductId(pid);
    }
}
